package top.zhangjianyong.blog.params.file;

import com.alibaba.fastjson2.annotation.JSONField;
import jakarta.validation.constraints.NotEmpty;
import java.util.List;
import jakarta.validation.constraints.NotNull;
import org.springframework.web.multipart.MultipartFile;

/**
 * 文件上传
 *
 * @author zhangjianyong
 * @since 2024/7/27 下午3:14
 */
public record UploadParam(
    @JSONField(serialize = false, deserialize = false) @NotEmpty(message = "上传文件不能为空")
    List<MultipartFile> files,
    @NotNull(message = "上传文件类型不能为空") Integer type) {
}
